#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<string.h>
int main() {
    char str[10000] = { 0 };
   /* scanf("%[^\n]", str);*/
    gets(str);
    int left = 0;
    int right = strlen(str) - 1;
    while (left < right)
    {
        char temp = str[left];
        str[left] = str[right];
        str[right] = temp;
        left++;
        right--;
    }
    printf("%s ", str);
    return 0;
}